package objetos;

import java.io.Serializable;
import java.util.Date;

import org.apache.http.conn.ManagedClientConnection;

import android.location.Location;

public class Operacion implements Serializable {

	private Double importe;
	private Location loc;
	private Categoria cat;
	private SubCategoria sub;
	private Date dia;
	private String descripcion;

	public Operacion(MainObjc mainObjc) {

		this.importe = mainObjc.getImporte();
		this.cat = mainObjc.getCategoria();
		this.sub = mainObjc.getSubCategoria();
		this.sub.setImporteAnterior(importe);
		this.dia = mainObjc.getFecha();
		this.descripcion = mainObjc.getDescripcion();
		
		
		

	}
	
	public String getDescripcion(){
		
		return descripcion;
		
	}

	public Double getImporte() {
		return importe;
	}

	public void setImporte(Double importe) {
		this.importe = importe;
	}

	public Location getLoc() {
		return loc;
	}

	public void setLoc(Location loc) {
		this.loc = loc;
	}

	public Categoria getCat() {
		return cat;
	}

	public void setCat(Categoria cat) {
		this.cat = cat;
	}

	public SubCategoria getSub() {
		return sub;
	}

	public void setSub(SubCategoria sub) {
		this.sub = sub;
	}

	public Date getDia() {
		return dia;
	}

	public void setDia(Date dia) {
		this.dia = dia;
	}

}
